﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Collections;


    public class DONHANG_BUSSINESS
    {
        public DataSet GET_DONHANG(DONHANG_ENTITY dh)
        {
            string ACTION = "LIST_DONHANG";
            return DONHANG_DATAACCESS.GETDATATABLE(ACTION, dh);
        }
        public DataSet ListDONHANGMOI()
        {
            string ACTION = "DH_LOADNEW";
            return DONHANG_DATAACCESS.GETDATATABLENONE(ACTION);

        }
        public Int32 ThemDONHANG(DONHANG_ENTITY en)
        {
            string ACTION = "DH_THEMMOI";
            return DONHANG_DATAACCESS.INSERTTABLE(ACTION, en);

        }
        public Int32 ThemDONHANGDETAIL(CHITIET_DONHANG_ENTITY en)
        {
            string ACTION = "DH_THEMMOICHITIET";
            return DONHANG_DATAACCESS.INSERTTABLEDETAIL(ACTION, en);

        }
    }
